<%-- 
    Document   : AccountLogin
    Created on : Dec 9, 2013, 2:44:14 PM
    Author     : lyhoang
--%>

<%@page import="com.bestbuy.util.APIWrapper"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page language="java"%>

<section>
	<div class="main">
		<div class="account-login">
			<div class="content">
				<h2>Nhập vào thông tin tài khoản</h2>

				<%-- 				<c:if test="${not empty error}"> --%>
				<!-- <!-- 				hien thong bao khi khong duoc quyen truy cap vao trang nay -->
				<!-- 					<div class="errorblock"> -->
				<!-- 						Your login attempt was not successful, try again.<br /> Caused : -->
				<%-- 						${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message} --%>
				<!-- 					</div> -->
				<%-- 				</c:if> --%>

				<form name='f' action="<c:url value='j_spring_security_check' />"
					method='POST'>
					<table class="form-list">
						<tr>
							<td class="required" for="j_username">Tên đăng nhập:<em>*</em></td>
							<td class="input-box"><input type='text' name='j_username'
								title="Tên Đăng Nhập" class="input-text required-entry"
								placeholder="Hoangtu2508" value=''></td>
						</tr>

						<tr>
							<td class="required" for="j_password">Mật khẩu:<em>*</em></td>
							<td><input type='password' name='j_password'
								title="Mật khẩu" class="input-text required-entry"
								placeholder="********" /></td>
						</tr>
						<!-- 						hien thi thong tin loi khi nguoi dung nhap mat khau khong dung -->
						<c:if test="${not empty error}">
							<br />
							<h5>
								Error: ${error}
								</h5>
						</c:if>
						<tr>
							<td class="required" for="btnLogin"></td>
							<td colspan='2' class="input-box"><input type="hidden"
								name="submit" value="submit" />
								<input class="colors-btn"
									name="btnLogin" type="submit" value="Đăng nhập" />
									<p></p>
									<div><a class="colors-btn" href="<%= APIWrapper.getDialogLink() %>">Login with Facebook</a></div>
							</td>
						</tr>
						<!-- 						<tr> -->
						<!-- 							<td colspan='2'><input name="reset" type="reset" /></td> -->
						<!-- 						</tr> -->
					</table>
				</form>
				
			</div>
		</div>
	</div>
</section>

